#ifndef _ADVANCE_SETTING_H_
#define _ADVANCE_SETTING_H_

#include <sqlite3.h>

#include "../include/ipc.h"
#include "../include/unicom.h"

/*
 *用于高级设置
 **/
struct setEnv
{
	int temMAX; //10-50
	int temMIN; //10-50
	int humMAX; //10-50
	int humMIN; //10-50
	int illMAX; //10-500
	int illMIN; //10-500
};

void init_advance_msg(struct ipc_info *p_ipc_info);
int get_advance_msg(struct ipc_info *p_ipc_info, struct msg *msg_buf);
int set_advance_info(struct msg *msg_buf);
int a_callback(void *para, int n_column, char **column_value, char **column_name);
int exec_sql_no_callback(sqlite3 *db, const char *sql);

#endif